package com.hzncc.scaffold.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.hzncc.scaffold.entity.Bo.SiteManagementBo;
import com.hzncc.scaffold.entity.Other.Siteapply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author DrunkBear
 * @since 2022-04-27
 */
public interface SiteapplyMapper extends BaseMapper<Siteapply> {


    @Select("SELECT siteapply.*,`user`.`name` FROM `siteapply` LEFT JOIN `user` ON `user`.id = siteapply.instituteId ${ew.customSqlSegment}")
    public List<SiteManagementBo> listBo(@Param(Constants.WRAPPER) QueryWrapper queryWrapper);
}
